package com.deli.springboot.entity;

import java.io.Serializable;
import java.util.Date;

public class BorrowHistory implements Serializable {
    private Long id;
    private Long userId;
    private Long bookId;
    private Date bDate;
    private Date rDate;
    private Integer status;//1为未归还  0为已归还

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getbDate() {
        return bDate;
    }

    public void setbDate(Date bDate) {
        this.bDate = bDate;
    }

    public Date getrDate() {
        return rDate;
    }

    public void setrDate(Date rDate) {
        this.rDate = rDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "BorrowHistory{" +
                "id=" + id +
                ", userId=" + userId +
                ", bookId=" + bookId +
                ", bDate=" + bDate +
                ", rDate=" + rDate +
                ", status=" + status +
                '}';
    }
}
